home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 98 / Skunkware 98.iso / src / x11 / viewers / xv-3.10a.JPEG-patch < prev    next >
Text File  |  1997-08-26  |  3KB  |  108 lines

  1. You'll need to apply the following (trivial) patch to get XV 3.10a to compile
  2. with version 6 of the Independent JPEG Group's JPEG library, which
  3. supports progressive JPEG and such.  
  4.  
  5. Note that XV 3.10a is still shipped with version 5a of said library.  If 
  6. you'd like the newer library, it is available for anonymous ftp on 
  7. ftp.cs.columbia.edu, in /jpeg/src.
  8.  
  9. John Bradley
  10. -----------------------------------------------------------------------------
  11.  
  12.  
  13. *** xvjpeg.c.old    Thu Jan  5 03:17:13 1995
  14. --- xvjpeg.c    Tue Jul 23 16:37:01 1996
  15. ***************
  16. *** 51,61 ****
  17.   static    void         clickJD            PARM((int, int));
  18.   static    void         doCmd              PARM((int));
  19.   static    void         writeJPEG          PARM((void));
  20. ! METHODDEF void         xv_error_exit      PARM((j_common_ptr));
  21. ! METHODDEF void         xv_error_output    PARM((j_common_ptr));
  22. ! METHODDEF void         xv_prog_meter      PARM((j_common_ptr));
  23.   static    unsigned int j_getc             PARM((j_decompress_ptr));
  24. ! METHODDEF boolean      xv_process_comment PARM((j_decompress_ptr));
  25.   static    int          writeJFIF          PARM((FILE *, byte *, int,int,int));
  26.   
  27.   
  28. --- 51,61 ----
  29.   static    void         clickJD            PARM((int, int));
  30.   static    void         doCmd              PARM((int));
  31.   static    void         writeJPEG          PARM((void));
  32. ! METHODDEF(void)        xv_error_exit      PARM((j_common_ptr));
  33. ! METHODDEF(void)        xv_error_output    PARM((j_common_ptr));
  34. ! METHODDEF(void)        xv_prog_meter      PARM((j_common_ptr));
  35.   static    unsigned int j_getc             PARM((j_decompress_ptr));
  36. ! METHODDEF(boolean)     xv_process_comment PARM((j_decompress_ptr));
  37.   static    int          writeJFIF          PARM((FILE *, byte *, int,int,int));
  38.   
  39.   
  40. ***************
  41. *** 400,406 ****
  42.   
  43.   
  44.   /**************************************************/
  45. ! METHODDEF void xv_error_exit(cinfo) 
  46.        j_common_ptr cinfo;
  47.   {
  48.     my_error_ptr myerr;
  49. --- 400,406 ----
  50.   
  51.   
  52.   /**************************************************/
  53. ! METHODDEF(void) xv_error_exit(cinfo) 
  54.        j_common_ptr cinfo;
  55.   {
  56.     my_error_ptr myerr;
  57. ***************
  58. *** 412,418 ****
  59.   
  60.   
  61.   /**************************************************/
  62. ! METHODDEF void xv_error_output(cinfo) 
  63.        j_common_ptr cinfo;
  64.   {
  65.     my_error_ptr myerr;
  66. --- 412,418 ----
  67.   
  68.   
  69.   /**************************************************/
  70. ! METHODDEF(void) xv_error_output(cinfo) 
  71.        j_common_ptr cinfo;
  72.   {
  73.     my_error_ptr myerr;
  74. ***************
  75. *** 426,432 ****
  76.   
  77.   
  78.   /**************************************************/
  79. ! METHODDEF void xv_prog_meter(cinfo)
  80.        j_common_ptr cinfo;
  81.   {
  82.     struct jpeg_progress_mgr *prog;
  83. --- 426,432 ----
  84.   
  85.   
  86.   /**************************************************/
  87. ! METHODDEF(void) xv_prog_meter(cinfo)
  88.        j_common_ptr cinfo;
  89.   {
  90.     struct jpeg_progress_mgr *prog;
  91. ***************
  92. *** 671,677 ****
  93.   
  94.   
  95.   /**************************************************/
  96. ! METHODDEF boolean xv_process_comment(cinfo)
  97.        j_decompress_ptr cinfo;
  98.   {
  99.     int          length, hasnull;
  100. --- 671,677 ----
  101.   
  102.   
  103.   /**************************************************/
  104. ! METHODDEF(boolean) xv_process_comment(cinfo)
  105.        j_decompress_ptr cinfo;
  106.   {
  107.     int          length, hasnull;
  108.